//
//  SinglePlayer.h
//  ShootBall
//
//  Created by macpro on 4/28/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Box2D.h"
#import "GLES-Render.h"
#import "ContactListener.h"

@interface SinglePlayer : CCLayer <CCTargetedTouchDelegate>{
    b2World* world;
    ContactListener* contactListener;
    
    GLESDebugDraw* debugDraw;
    
    CCSprite *b1;
    CCSprite *b2;
    CCSprite *b3;
    
    CCSprite *br1;
    CCSprite *br2;
    CCSprite *br3;
    
    int currentBlueMark;
    int currentRedMark;
    int moveFirst;
    
    CCLabelTTF *lbWinUser;
    BOOL stopGame;
    
    int countBlue;
    int countRed;
    
    int currentTouchTag;
    
    BOOL redHadShoot;
    
    CCLabelTTF *lbMove1;
    CCLabelTTF *lbMove2;
    
    BOOL hadChangeLabel;
    UIButton *btnGoHome;
    
    CCLabelTTF *lb_score_1;
    CCLabelTTF *lb_score_2;
    
    int currentScore1;
    int currentScore2;
}
+(id) scene;

-(BOOL)isInHall:(CGPoint)pos;
-(b2World *) getWorld;
-(void)setupAll;
-(void) endMovingWithTag:(int) tag;
-(BOOL) checkBallNotMove;

@end
